package com.groupname.dangerousdelves;

import android.content.Intent;
import android.os.Handler;
import android.os.Bundle;
import sofia.app.Screen;
import android.app.Activity;

// -------------------------------------------------------------------------
/**
 *  Write a one-sentence summary of your class here.
 *  Follow it with additional details about its purpose, what abstraction
 *  it represents, and how to use it.
 *
 *  @author Chris Fieldman
 *  @version 2012.11.15
 */
public class DangerousDelvesGame
    extends Activity implements Game
{
    //~-------------------------------------------------------------------------
    // Member Variables


    //~-------------------------------------------------------------------------
    // Constructors


    //~-------------------------------------------------------------------------
    // Methods

    // I'm not sure if this should actually be in the game class but maybe
    // another activity that exists only to transition to the splash screen
    // and the main menu.
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.splashscreen);

        new Handler().postDelayed(new Thread()
        {
            @Override
            public void run()
            {
                Intent mainMenu = new Intent(DangerousDelvesGame.this,
                    MainMenuScreen.class);

                DangerousDelvesGame.this.startActivity(mainMenu);
                DangerousDelvesGame.this.finish();
                overridePendingTransition(R.layout.fadein, R.layout.fadeout);
            }
        }, 4000);
    }

    public FileIO getFileIO()
    {
        // TODO Auto-generated method stub
        return null;
    }

    public Audio getAudio()
    {
        // TODO Auto-generated method stub
        return null;
    }

    public void setScreen(Screen screen)
    {
        // TODO Auto-generated method stub

    }

    public Screen getCurrentScreen()
    {
        // TODO Auto-generated method stub
        return null;
    }

    public Screen getStartScreen()
    {
        // TODO Auto-generated method stub
        return null;
    }
}
